Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Tag): Implement tag color #1727

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

geoffreykwan
Copy link
Member

@geoffreykwan geoffreykwan commented Apr 11, 2024

Changes

  • Added ability to set color on a tag
  • Created EditTagComponent
  • Deleted AbstractTagDialogComponent
  • Fixed a bug where "Tag already exists" error message does not show up immediately when it should
  • Fixed a bug where the user could bypass tag validation checks by hitting enter

Test

  • Test with feat(Tag): Implement tag color WISE-API#270
  • Make sure
    • you can create a tag with color
    • you can update a tag with color
    • tag color shows up in the manage tags dialog
    • tag color shows up in the apply tags menu
    • tag color shows up in the run card
    • tag color immediately updates in the manage tags dialog
    • tag color immediately updates in the apply tags menu
    • tag color immediately updates in the run card

@geoffreykwan geoffreykwan self-assigned this Apr 11, 2024
@geoffreykwan geoffreykwan marked this pull request as ready for review April 11, 2024 15:51
Copy link
Member

@hirokiterashima hirokiterashima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as described. I have some comments.

What's the purpose for having the endpoints return ProjectAndTagsResponse? It doesn't look like this response is used in any of the components that call the endpoints. Should the endpoints return void instead?

CreateTagDialogComponent and EditTagDialogComponent are very similar. Should we extract common code to an abstract class?

Manage Tags UI/UX has veered a bit from our designs (https://balsamiq.cloud/s8brvqj/p9j1not/rEB79 and https://balsamiq.cloud/s8brvqj/p9j1not/r24F3). Should we allow editing (tag name, tag color) directly in the Manage Tags dialog?

Also, I don't think we should have the author type in a color because we don't want users typing in dark colors like "black" and "blue", which would make the tag text difficult to read. How difficult is it to add a color chooser, like a grid of pre-selected soft colors?

@hirokiterashima hirokiterashima self-requested a review April 11, 2024 22:06
Copy link
Member

@hirokiterashima hirokiterashima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. We'll make improvements on UI/UX and code in the future PR's.

@geoffreykwan geoffreykwan merged commit 1af2b6f into issue-1686-implement-unit-tagging Apr 12, 2024
@geoffreykwan geoffreykwan deleted the implement-tag-color branch April 12, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants